/*
 * Copyright 2017 The JA-SIG Collaborative. All rights reserved.
 * distributed with thi file and available online at
 */
package com.lap.scp.admin.domain;

import com.lap.scd.commons.domain.IntegerDO;

/**
 * <pre>
 * 没有数据库对应，这里只是提供登录使用
 * </pre>
 * 
 * @author 劳水生 Exp
 * @Date 2017年9月3日 下午2:40:53
 * @since 1.0
 */
public class LoginDO extends IntegerDO {
	private static final long serialVersionUID = 2975714357576888579L;
	/**
	 * 登录名
	 */
	private String username;
	/**
	 * 密码
	 */
	private String password;
	/**
	 * 随机码
	 */
	private String randCode;
	/**
	 * ip
	 */
	private String ip;
	/**
	 * 重新定向的地址
	 */
	private String redirect;

	private Boolean rememberMe;

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getRandCode() {
		return randCode;
	}

	public void setRandCode(String randCode) {
		this.randCode = randCode;
	}

	public String getIp() {
		return ip;
	}

	public void setIp(String ip) {
		this.ip = ip;
	}

	public String getRedirect() {
		return redirect;
	}

	public void setRedirect(String redirect) {
		this.redirect = redirect;
	}

	public Boolean getRememberMe() {
		return this.rememberMe = rememberMe==null?false:true;
	}

	public void setRememberMe(Boolean rememberMe) {
		this.rememberMe = rememberMe;
	}
}
